package com.ruoyi.project.comp.like.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 作品点赞记录对象 comp_like
 *
 * @author ruoyi
 * @date 2025-11-02
 */
        public class CompLike extends BaseEntity
        {
        private static final long serialVersionUID = 1L;

                /** 点赞ID，主键 */
        private Long id;

                /** 关联作品ID（外键） */
                @Excel(name = "关联作品ID", readConverterExp = "外=键")
        private Long workId;

                /** 点赞用户ID（关联用户表） */
                @Excel(name = "点赞用户ID", readConverterExp = "关=联用户表")
        private Long userId;

                /** 点赞时间 */
                @JsonFormat(pattern = "yyyy-MM-dd")
                @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date likeTime;

                /** 点赞日期（用于按日统计次数） */
                @Excel(name = "点赞日期", readConverterExp = "用=于按日统计次数")
        private Date likeDate;


        // ====================================== 自定义字段开始 ======================================
        // 在此处添加的自定义字段，重新生成代码时不会被覆盖
        // 示例：
        // private String customField; // 自定义扩展字段
        // ====================================== 自定义字段结束 ======================================


        // ====================================== 自定义方法开始 ======================================
        // 在此处添加的自定义getter/setter或其他方法，重新生成代码时不会被覆盖
        // 示例：
        // public String getCustomField() { return customField; }
        // public void setCustomField(String customField) { this.customField = customField; }
        // ====================================== 自定义方法结束 ======================================


                public void setId(Long id)
                {
                    this.id = id;
                }

                public Long getId()
                {
                    return id;
                }
                public void setWorkId(Long workId)
                {
                    this.workId = workId;
                }

                public Long getWorkId()
                {
                    return workId;
                }
                public void setUserId(Long userId)
                {
                    this.userId = userId;
                }

                public Long getUserId()
                {
                    return userId;
                }
                public void setLikeTime(Date likeTime)
                {
                    this.likeTime = likeTime;
                }

                public Date getLikeTime()
                {
                    return likeTime;
                }
                public void setLikeDate(Date likeDate)
                {
                    this.likeDate = likeDate;
                }

                public Date getLikeDate()
                {
                    return likeDate;
                }



        @Override
        public String toString() {
            return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("workId", getWorkId())
                .append("userId", getUserId())
                .append("likeTime", getLikeTime())
                .append("likeDate", getLikeDate())
                    // ====================================== 自定义toString开始 ======================================
                    // 手动添加自定义字段的toString内容，例如：
                    // .append("customField", getCustomField())
                    // ====================================== 自定义toString结束 ======================================
                    .toString();
        }
}